import pytest
import os
import requests


@pytest.fixture(scope='session')
def User():
    url = os.getenv('Login')

    headers = {
        "Content-Type": "application/x-www-form-urlencoded",
        "Cookie": "JSESSIONID=B47EEFF849CDF2A57157AD1102F0CC06"
    }


    data = {
        "loginName": "admin",
        "roncooPwd": "123456",
    }

    re = requests.post(url=url, data=data,headers=headers)
    print('看看结果', re.json())




